import {JIA,JIAN} from './constant'
import store from './store'

export const creatJia = data => ({type:JIA,data})
export const creatJian = data => ({type:JIAN,data})
export const creatYiJia = (data,time) => {
  return () =>{
   setTimeout(()=>{
    store.dispatch(creatJia(data))
   },time)
 }
}